//
//  CWQ_messageCell.m
//  BaxTer
//
//  Created by 陈武琦 on 16/9/9.
//  Copyright © 2016年 陈武琦. All rights reserved.
//

#import "CWQ_messageCell.h"
#import "NSString+Utilities.h"
@implementation CWQ_messageCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.redDot.layer.masksToBounds = YES;
    self.redDot.layer.cornerRadius = 6;
}

- (void)setModel:(CWQ_messageM *)model {

    _model = model;
    self.title.text = model.notifName;
    self.content.text = model.sourceName;
    self.date.text = [NSString timeToString:[model.createDate longLongValue]];
    
    if ([model.isRead integerValue] == 0) {
        self.redDot.hidden = NO;
    }else{
         self.redDot.hidden = YES;
    }

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
